<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Context Free LALR1 compiler: parserProgram.HistoryElement Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Context Free LALR1 compiler
   &#160;<span id="projectnumber">1.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="dynsections.js"></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('classparser_program_1_1_history_element.html','');
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">parserProgram.HistoryElement Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>This class represent an element of the parsing history.  
 <a href="classparser_program_1_1_history_element.html#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Collaboration diagram for parserProgram.HistoryElement:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classparser_program_1_1_history_element__coll__graph.png" border="0" usemap="#parser_program_8_history_element_coll__map" alt="Collaboration graph"/></div>
<map name="parser_program_8_history_element_coll__map" id="parser_program_8_history_element_coll__map">
<area shape="rect" id="node2" href="classcontext_free_1_1grammar_1_1_production.html" title="{contextFree.grammar.Production\n|~ right\l&#45; left\l&#45; leftSimbols\l&#45; rightSimbols\l|+ Production()\l+ Production()\l+ Production()\l+ Production()\l+ getLeftSimbols()\l+ setLeftSimbols()\l+ getRightSimbols()\l+ setRightSimbols()\l+ getLeft()\l+ getRight()\l+ toString()\l}" alt="" coords="5,302,216,570"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classparser_program_1_1_history_element-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a45f360f314f688585844a62592bdb5c5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a45f360f314f688585844a62592bdb5c5"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classparser_program_1_1_history_element.html#a45f360f314f688585844a62592bdb5c5">HistoryElement</a> ()</td></tr>
<tr class="memdesc:a45f360f314f688585844a62592bdb5c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor. <br/></td></tr>
<tr class="memitem:ae6d3bdd3606301f0b08d4e9258b5c5cf"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classparser_program_1_1_history_element.html#ae6d3bdd3606301f0b08d4e9258b5c5cf">HistoryElement</a> (String[] stk)</td></tr>
<tr class="memdesc:ae6d3bdd3606301f0b08d4e9258b5c5cf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct the object with specified parsing stack.  <a href="#ae6d3bdd3606301f0b08d4e9258b5c5cf"></a><br/></td></tr>
<tr class="memitem:a0cd8852d35a48856c6e893ae33cbde30"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classparser_program_1_1_history_element.html#a0cd8852d35a48856c6e893ae33cbde30">HistoryElement</a> (String[] stk, <a class="el" href="classcontext_free_1_1grammar_1_1_production.html">Production</a> p, String s)</td></tr>
<tr class="memdesc:a0cd8852d35a48856c6e893ae33cbde30"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct the object with specified parsing stack, production and step.  <a href="#a0cd8852d35a48856c6e893ae33cbde30"></a><br/></td></tr>
<tr class="memitem:a8f20a699af1fa68f114acef0f72117b5"><td class="memItemLeft" align="right" valign="top">String[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classparser_program_1_1_history_element.html#a8f20a699af1fa68f114acef0f72117b5">getStack</a> ()</td></tr>
<tr class="memitem:a640ecb265a57f1b084fe99cf2a2a9a35"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classparser_program_1_1_history_element.html#a640ecb265a57f1b084fe99cf2a2a9a35">setStack</a> (String[] stack)</td></tr>
<tr class="memdesc:a640ecb265a57f1b084fe99cf2a2a9a35"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the stack.  <a href="#a640ecb265a57f1b084fe99cf2a2a9a35"></a><br/></td></tr>
<tr class="memitem:a1e3354d1bc805c952c4ed9a35ddac0dd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcontext_free_1_1grammar_1_1_production.html">Production</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classparser_program_1_1_history_element.html#a1e3354d1bc805c952c4ed9a35ddac0dd">getProduction</a> ()</td></tr>
<tr class="memitem:a2311f48be369f4d0e6be47c2a7ac7546"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classparser_program_1_1_history_element.html#a2311f48be369f4d0e6be47c2a7ac7546">setProduction</a> (<a class="el" href="classcontext_free_1_1grammar_1_1_production.html">Production</a> production)</td></tr>
<tr class="memdesc:a2311f48be369f4d0e6be47c2a7ac7546"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the production.  <a href="#a2311f48be369f4d0e6be47c2a7ac7546"></a><br/></td></tr>
<tr class="memitem:ab64610fe65f58bca7d542244378ac030"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classparser_program_1_1_history_element.html#ab64610fe65f58bca7d542244378ac030">getSimbol</a> ()</td></tr>
<tr class="memitem:a54ecd254d7abd49d0d10230892dfc35b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classparser_program_1_1_history_element.html#a54ecd254d7abd49d0d10230892dfc35b">setSimbol</a> (String simbol)</td></tr>
<tr class="memdesc:a54ecd254d7abd49d0d10230892dfc35b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the parsing step.  <a href="#a54ecd254d7abd49d0d10230892dfc35b"></a><br/></td></tr>
<tr class="memitem:a233c9c55643f4d6bc8103c4e2c8bd038"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classparser_program_1_1_history_element.html#a233c9c55643f4d6bc8103c4e2c8bd038">isShift</a> ()</td></tr>
<tr class="memitem:aa0ddd25dd8d27e59d63123b2f50e1cb4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa0ddd25dd8d27e59d63123b2f50e1cb4"></a>
String&#160;</td><td class="memItemRight" valign="bottom"><b>toString</b> ()</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a3ab04c9be50cda70dcfd9ee134884d9f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3ab04c9be50cda70dcfd9ee134884d9f"></a>
String[]&#160;</td><td class="memItemRight" valign="bottom"><b>stack</b></td></tr>
<tr class="memitem:a93323e030ba302f08564c7d6cd021a15"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a93323e030ba302f08564c7d6cd021a15"></a>
<a class="el" href="classcontext_free_1_1grammar_1_1_production.html">Production</a>&#160;</td><td class="memItemRight" valign="bottom"><b>production</b></td></tr>
<tr class="memitem:a3c9ad24a6a0f33ac5d1cbc95ff1e82de"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3c9ad24a6a0f33ac5d1cbc95ff1e82de"></a>
String&#160;</td><td class="memItemRight" valign="bottom"><b>simbol</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>This class represent an element of the parsing history. </p>
<dl class="section author"><dt>Author:</dt><dd>Paolo Pino </dd></dl>

<p>Definition at line <a class="el" href="_history_element_8java_source.html#l00011">11</a> of file <a class="el" href="_history_element_8java_source.html">HistoryElement.java</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ae6d3bdd3606301f0b08d4e9258b5c5cf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classparser_program_1_1_history_element.html#a45f360f314f688585844a62592bdb5c5">parserProgram.HistoryElement.HistoryElement</a> </td>
          <td>(</td>
          <td class="paramtype">String[]&#160;</td>
          <td class="paramname"><em>stk</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construct the object with specified parsing stack. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">stk</td><td>the stack to set. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_history_element_8java_source.html#l00029">29</a> of file <a class="el" href="_history_element_8java_source.html">HistoryElement.java</a>.</p>

</div>
</div>
<a class="anchor" id="a0cd8852d35a48856c6e893ae33cbde30"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classparser_program_1_1_history_element.html#a45f360f314f688585844a62592bdb5c5">parserProgram.HistoryElement.HistoryElement</a> </td>
          <td>(</td>
          <td class="paramtype">String[]&#160;</td>
          <td class="paramname"><em>stk</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classcontext_free_1_1grammar_1_1_production.html">Production</a>&#160;</td>
          <td class="paramname"><em>p</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>s</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construct the object with specified parsing stack, production and step. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">p</td><td>the production. </td></tr>
    <tr><td class="paramname">s</td><td>the step. </td></tr>
    <tr><td class="paramname">stk</td><td>the stack to set. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_history_element_8java_source.html#l00041">41</a> of file <a class="el" href="_history_element_8java_source.html">HistoryElement.java</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a1e3354d1bc805c952c4ed9a35ddac0dd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcontext_free_1_1grammar_1_1_production.html">Production</a> <a class="el" href="classparser_program_1_1_history_element.html#a1e3354d1bc805c952c4ed9a35ddac0dd">parserProgram.HistoryElement.getProduction</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="section return"><dt>Returns:</dt><dd>the production in the history element </dd></dl>

<p>Definition at line <a class="el" href="_history_element_8java_source.html#l00065">65</a> of file <a class="el" href="_history_element_8java_source.html">HistoryElement.java</a>.</p>

</div>
</div>
<a class="anchor" id="ab64610fe65f58bca7d542244378ac030"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">String <a class="el" href="classparser_program_1_1_history_element.html#ab64610fe65f58bca7d542244378ac030">parserProgram.HistoryElement.getSimbol</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="section return"><dt>Returns:</dt><dd>the history step. </dd></dl>

<p>Definition at line <a class="el" href="_history_element_8java_source.html#l00080">80</a> of file <a class="el" href="_history_element_8java_source.html">HistoryElement.java</a>.</p>

</div>
</div>
<a class="anchor" id="a8f20a699af1fa68f114acef0f72117b5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">String [] <a class="el" href="classparser_program_1_1_history_element.html#a8f20a699af1fa68f114acef0f72117b5">parserProgram.HistoryElement.getStack</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="section return"><dt>Returns:</dt><dd>the stack </dd></dl>

<p>Definition at line <a class="el" href="_history_element_8java_source.html#l00050">50</a> of file <a class="el" href="_history_element_8java_source.html">HistoryElement.java</a>.</p>

</div>
</div>
<a class="anchor" id="a233c9c55643f4d6bc8103c4e2c8bd038"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boolean <a class="el" href="classparser_program_1_1_history_element.html#a233c9c55643f4d6bc8103c4e2c8bd038">parserProgram.HistoryElement.isShift</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="section return"><dt>Returns:</dt><dd>true if the history element execute a shift. </dd></dl>

<p>Definition at line <a class="el" href="_history_element_8java_source.html#l00094">94</a> of file <a class="el" href="_history_element_8java_source.html">HistoryElement.java</a>.</p>

</div>
</div>
<a class="anchor" id="a2311f48be369f4d0e6be47c2a7ac7546"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classparser_program_1_1_history_element.html#a2311f48be369f4d0e6be47c2a7ac7546">parserProgram.HistoryElement.setProduction</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcontext_free_1_1grammar_1_1_production.html">Production</a>&#160;</td>
          <td class="paramname"><em>production</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the production. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">production</td><td>the production to set. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_history_element_8java_source.html#l00073">73</a> of file <a class="el" href="_history_element_8java_source.html">HistoryElement.java</a>.</p>

</div>
</div>
<a class="anchor" id="a54ecd254d7abd49d0d10230892dfc35b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classparser_program_1_1_history_element.html#a54ecd254d7abd49d0d10230892dfc35b">parserProgram.HistoryElement.setSimbol</a> </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>simbol</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the parsing step. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">simbol</td><td>the parsing step. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_history_element_8java_source.html#l00087">87</a> of file <a class="el" href="_history_element_8java_source.html">HistoryElement.java</a>.</p>

</div>
</div>
<a class="anchor" id="a640ecb265a57f1b084fe99cf2a2a9a35"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classparser_program_1_1_history_element.html#a640ecb265a57f1b084fe99cf2a2a9a35">parserProgram.HistoryElement.setStack</a> </td>
          <td>(</td>
          <td class="paramtype">String[]&#160;</td>
          <td class="paramname"><em>stack</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the stack. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">stack</td><td>the stack. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_history_element_8java_source.html#l00058">58</a> of file <a class="el" href="_history_element_8java_source.html">HistoryElement.java</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/parserProgram/<a class="el" href="_history_element_8java_source.html">HistoryElement.java</a></li>
</ul>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceparser_program.html">parserProgram</a>      </li>
      <li class="navelem"><a class="el" href="classparser_program_1_1_history_element.html">HistoryElement</a>      </li>

    <li class="footer">Generated on Fri Mar 30 2012 21:26:29 for Context Free LALR1 compiler by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
   </ul>
 </div>


</body>
</html>
